Skip to content

Conversation

@bryankeller
Copy link
Contributor

Details

This PR fixes 2 issues:

  1. I was never caching the result of self-sizing a month header, causing us to call systemLayoutSizeFitting on every frame 💀
  2. We weren't caching calendar item models for some calendar slots, like for day ranges and month backgrounds

Related Issue

N/A

Motivation and Context

Performance improvements

How Has This Been Tested

Example app, Airbnb app

@bryankeller bryankeller added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Nov 14, 2024
@bryankeller bryankeller force-pushed the bk/add-missing-calendar-item-model-cache branch from c576614 to cfc3458 Compare November 14, 2024 01:57
@bryankeller bryankeller force-pushed the bk/add-missing-calendar-item-model-cache branch from cfc3458 to ded628f Compare November 14, 2024 05:43
Copy link
Contributor

@brynbodayle brynbodayle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to add some tests for this

@bryankeller
Copy link
Contributor Author

Hmm yeah, I'll think about how that might be possible. We don't expose whether something was returned from cache or not, but I bet there's some way we could get it tested.

@bryankeller bryankeller merged commit 697c6f2 into master Nov 14, 2024
2 checks passed
@bryankeller bryankeller deleted the bk/add-missing-calendar-item-model-cache branch November 14, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants